package com.cjy.service;

import com.cjy.dao.adminMapper;
import com.cjy.pojo.Admin;

import java.util.List;

public class adminServiceImpl implements adminService {
    private adminMapper adminMapper;

    public void setAdminMapper(com.cjy.dao.adminMapper adminMapper) {
        this.adminMapper = adminMapper;
    }

    @Override
    public Admin queryAdminById(int id) {
        return adminMapper.queryAdminById(id);
    }

    @Override
    public List<Admin> adminAll() {
        return adminMapper.adminAll();
    }

    @Override
    public Admin queryAdminNameAndPwd(String AdminName, String AdminPwd) {
        return adminMapper.queryAdminNameAndPwd(AdminName,AdminPwd);
    }

    @Override
    public List<Admin> adminByName(String Name) {
        System.out.println("进入了service");
        return adminMapper.adminByName(Name);
    }

    @Override
    public int addAdmin(Admin admin) {
        return adminMapper.addAdmin(admin);
    }


}
